/* eslint-disable */
import request from '@/request'

/** addContent POST /api/content/add */
export async function addContentUsingPost(
  body: API.ContentAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/content/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteContent POST /api/content/delete */
export async function deleteContentUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/content/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** editContent POST /api/content/edit */
export async function editContentUsingPost(
  body: API.ContentEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/content/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getContentVOById GET /api/content/get/vo */
export async function getContentVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getContentVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseContentVO_>('/api/content/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listContentByPage POST /api/content/list/page */
export async function listContentByPageUsingPost(
  body: API.ContentQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageContent_>('/api/content/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listContentVOByPage POST /api/content/list/page/vo */
export async function listContentVoByPageUsingPost(
  body: API.ContentQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageContentVO_>('/api/content/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listMyContentVOByPage POST /api/content/my/list/page/vo */
export async function listMyContentVoByPageUsingPost(
  body: API.ContentQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageContentVO_>('/api/content/my/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** reviewContent POST /api/content/review */
export async function reviewContentUsingPost(
  body: API.ContentUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/content/review', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateContent POST /api/content/update */
export async function updateContentUsingPost(
  body: API.ContentUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/content/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
